<nav class="navbar navbar-default" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">Home</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a title="archive" href="/archive">archive</a></li>
                <li><a title="tags" href="/tags">tags</a></li>
                <li><a title="友情链接" href="/links">友情链接</a></li>
                <li><a title="搜索中心" href="/esearch">搜索中心</a></li>
            </ul>
            <!--<form class="navbar-form pull-left hidden-sm hidden-md" action="/search" method="get">
                <div class="form-group">
                    <input type="text" class="form-control" name="keyword" placeholder="keyword">
                </div>
                <button type="submit" class="btn btn-default">Search</button>
            </form>-->
            <ul class="nav navbar-nav navbar-right">
                {{#if user}}
                    <li><a title="上传" href="/upload">上传</a></li>
                    <li><a title="发表" href="/post">发表</a></li>
                    <li><a title="登出" href="/logout">logout</a></li>
                {{else}}
                    <li><a title="登录" href="/login">login</a></li>
                    <li><a title="注册" href="/reg">register</a></li>
                {{/if}}
            </ul>
        </div><!-- /.navbar-collapse -->
    </div>
</nav>